<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>社交问答推荐</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        /* 基础样式 */
        body {
            font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background-color: #f8fafc;
            color: #1e293b;
            line-height: 1.6;
        }
        
        .container {
            max-width: 1140px;
        }
        
        .section-heading {
            font-weight: 700;
            margin: 2.5rem 0 1.5rem;
            padding-bottom: 0.75rem;
            border-bottom: 2px solid #3b82f6;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        
        .section-description {
            color: #64748b;
            margin-bottom: 1.5rem;
            font-size: 0.95rem;
        }
        
        /* 通用问答卡片样式 */
        .qa-card {
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            overflow: hidden;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        
        .qa-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
        }
        
        /* 用户信息样式 */
        .user-info {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            font-size: 0.875rem;
            color: #64748b;
        }
        
        .user-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            overflow: hidden;
        }
        
        .user-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .user-name {
            font-weight: 600;
            color: #1e293b;
            text-decoration: none;
            transition: color 0.2s;
        }
        
        .user-name:hover {
            color: #3b82f6;
        }
        
        .qa-meta {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.875rem;
            color: #64748b;
        }
        
        .qa-tag {
            display: inline-block;
            padding: 0.2rem 0.5rem;
            font-size: 0.75rem;
            border-radius: 4px;
            background-color: #eff6ff;
            color: #3b82f6;
            font-weight: 500;
        }
        
        /* 问答内容样式 */
        .question {
            font-weight: 600;
            margin-bottom: 0.75rem;
            color: #1e293b;
            transition: color 0.2s;
        }
        
        .question a {
            color: #1e293b;
            text-decoration: none;
        }
        
        .question a:hover {
            color: #3b82f6;
        }
        
        .question-text {
            margin-bottom: 1rem;
            line-height: 1.7;
        }
        
        .answer-preview {
            background-color: #f8fafc;
            border-left: 3px solid #3b82f6;
            padding: 0.75rem 1rem;
            margin-bottom: 1rem;
            border-radius: 0 4px 4px 0;
        }
        
        .answer-text {
            color: #334155;
            font-size: 0.95rem;
        }
        
        .read-more {
            color: #3b82f6;
            font-weight: 500;
            text-decoration: none;
            font-size: 0.9rem;
        }
        
        .read-more:hover {
            text-decoration: underline;
        }
        
        /* 图片样式 */
        .qa-image {
            border-radius: 6px;
            overflow: hidden;
            margin-bottom: 1rem;
        }
        
        .qa-image img {
            width: 100%;
            height: auto;
            object-fit: cover;
        }
        
        /* 统计和交互区域样式 */
        .qa-stats {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            font-size: 0.875rem;
            color: #64748b;
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }
        
        .qa-actions {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .action-btn {
            background: none;
            border: none;
            color: #64748b;
            font-size: 0.875rem;
            display: flex;
            align-items: center;
            gap: 0.25rem;
            cursor: pointer;
            transition: color 0.2s;
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
        }
        
        .action-btn:hover {
            color: #3b82f6;
            background-color: #f1f5f9;
        }
        
        .action-btn.voted {
            color: #3b82f6;
        }
        
        /* 布局1: 带预览回答的问答卡片 */
        .layout-answer-preview .qa-card {
            margin-bottom: 1.5rem;
            padding: 1.25rem;
        }
        
        .layout-answer-preview .user-info {
            margin-bottom: 1rem;
        }
        
        /* 布局2: 简洁问答列表 */
        .layout-compact-list .qa-card {
            margin-bottom: 1rem;
            padding: 1rem;
            display: flex;
        }
        
        .layout-compact-list .stats-column {
            width: 80px;
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }
        
        .layout-compact-list .stats-value {
            font-weight: 600;
            font-size: 1.1rem;
            color: #3b82f6;
        }
        
        .layout-compact-list .stats-label {
            font-size: 0.75rem;
            color: #64748b;
            text-align: center;
        }
        
        .layout-compact-list .content-column {
            flex: 1;
            padding-left: 1rem;
            border-left: 1px solid #f1f5f9;
        }
        
        .layout-compact-list .question {
            margin-bottom: 0.25rem;
        }
        
        .layout-compact-list .qa-meta {
            margin-bottom: 0.5rem;
        }
        
        /* 布局3: 带图片的问答卡片 */
        .layout-with-images .qa-card {
            margin-bottom: 1.5rem;
            padding: 1.25rem;
        }
        
        .layout-with-images .images-container {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1rem;
            overflow-x: auto;
            padding-bottom: 0.5rem;
        }
        
        .layout-with-images .qa-image {
            flex: 0 0 180px;
            height: 120px;
            margin-bottom: 0;
        }
        
        /* 布局4: 热门问答网格 */
        .layout-popular-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.5rem;
        }
        
        .layout-popular-grid .qa-card {
            padding: 1.25rem;
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        
        .layout-popular-grid .question {
            font-size: 1.1rem;
            margin-bottom: 0.75rem;
        }
        
        .layout-popular-grid .question-text {
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin-bottom: 1rem;
        }
        
        .layout-popular-grid .qa-footer {
            margin-top: auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 1rem;
            border-top: 1px solid #f1f5f9;
        }
        
        /* 布局5: 已解决问答样式 */
        .layout-solved-questions .qa-card {
            margin-bottom: 1.5rem;
            border-left: 4px solid #10b981;
        }
        
        .layout-solved-questions .card-header {
            background-color: #f0fdf4;
            padding: 1rem 1.25rem;
            border-bottom: 1px solid #dcfce7;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .layout-solved-questions .solved-badge {
            background-color: #10b981;
            color: white;
            padding: 0.2rem 0.5rem;
            border-radius: 4px;
            font-size: 0.75rem;
            font-weight: 500;
        }
        
        .layout-solved-questions .card-body {
            padding: 1.25rem;
        }
        
        .layout-solved-questions .best-answer {
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 2px dashed #dcfce7;
        }
        
        .layout-solved-questions .answer-header {
            font-weight: 600;
            color: #059669;
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        /* 响应式调整 */
        @media (max-width: 768px) {
            .layout-compact-list .stats-column {
                width: 60px;
            }
            
            .layout-popular-grid {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            }
            
            .qa-stats {
                gap: 1rem;
                flex-wrap: wrap;
            }
            
            .action-btn span {
                display: none;
            }
            
            .qa-actions {
                gap: 0.5rem;
            }
        }
        
        @media (max-width: 576px) {
            .layout-popular-grid {
                grid-template-columns: 1fr;
            }
            
            .layout-compact-list .qa-card {
                flex-direction: column;
            }
            
            .layout-compact-list .stats-column {
                width: 100%;
                flex-direction: row;
                justify-content: flex-start;
                padding-bottom: 0.5rem;
                margin-bottom: 0.5rem;
                border-bottom: 1px solid #f1f5f9;
            }
            
            .layout-compact-list .content-column {
                padding-left: 0;
                border-left: none;
            }
            
            .section-heading {
                font-size: 1.5rem;
            }
        }
    </style>
</head>
<body>
    <div class="container py-5">
        <!-- 页面标题 -->
        <div class="text-center mb-5">
            <h1 class="display-5 mb-3">社区问答推荐</h1>
            <p class="text-muted">探索热门问题，分享你的知识和见解</p>
        </div>
        
        <!-- 布局1: 带预览回答的问答卡片 -->
        <section>
            <h2 class="section-heading">
                <i class="fas fa-comment-dots"></i> 精选问答
            </h2>
            <p class="section-description">高质量的问答内容，帮你解决实际问题</p>
            
            <div class="layout-answer-preview">
                <!-- 问答1 -->
                <div class="qa-card">
                    <div class="user-info">
                        <div class="user-avatar">
                            <img src="https://picsum.photos/40/40?random=201" alt="提问用户头像">
                        </div>
                        <div>
                            <a href="#" class="user-name">技术探索者</a>
                            <div class="qa-meta">
                                <span>2天前</span>
                                <span>·</span>
                                <span class="qa-tag">编程</span>
                                <span class="qa-tag">JavaScript</span>
                            </div>
                        </div>
                    </div>
                    
                    <h3 class="question">
                        <a href="#">如何优雅地处理JavaScript中的异步错误？</a>
                    </h3>
                    
                    <p class="question-text">
                        我正在开发一个前端项目，使用了大量的异步操作（Promise、async/await），但发现在错误处理方面总是不够优雅。特别是在多个异步操作串联的情况下，很容易写出嵌套过深的代码或者遗漏某些错误处理。有没有什么最佳实践可以推荐？
                    </p>
                    
                    <div class="answer-preview">
                        <div class="user-info mb-2">
                            <div class="user-avatar">
                                <img src="https://picsum.photos/40/40?random=211" alt="回答用户头像">
                            </div>
                            <div>
                                <a href="#" class="user-name">前端架构师</a>
                                <div class="qa-meta">
                                    <span>1天前 回答</span>
                                </div>
                            </div>
                        </div>
                        
                        <p class="answer-text">
                            处理JavaScript异步错误有几种优雅的方式：<br>
                            1. 使用try/catch配合async/await是最直观的方式，尤其适合处理串联的异步操作...
                        </p>
                        
                        <a href="#" class="read-more">查看完整回答</a>
                    </div>
                    
                    <div class="d-flex justify-content-between align-items-center">
                        <div class="qa-stats">
                            <div class="stat-item">
                                <i class="far fa-comment"></i>
                                <span>12 个回答</span>
                            </div>
                            <div class="stat-item">
                                <i class="far fa-eye"></i>
                                <span>3.2k 浏览</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-vote-yea"></i>
                                <span>48 人觉得有帮助</span>
                            </div>
                        </div>
                        
                        <div class="qa-actions">
                            <button class="action-btn">
                                <i class="far fa-comment"></i>
                                <span>回答</span>
                            </button>
                            <button class="action-btn">
                                <i class="far fa-bookmark"></i>
                                <span>收藏</span>
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- 问答2 -->
                <div class="qa-card">
                    <div class="user-info">
                        <div class="user-avatar">
                            <img src="https://picsum.photos/40/40?random=202" alt="提问用户头像">
                        </div>
                        <div>
                            <a href="#" class="user-name">摄影爱好者</a>
                            <div class="qa-meta">
                                <span>5天前</span>
                                <span>·</span>
                                <span class="qa-tag">摄影</span>
                                <span class="qa-tag">器材</span>
                            </div>
                        </div>
                    </div>
                    
                    <h3 class="question">
                        <a href="#">预算5000元左右，有哪些适合新手的微单相机推荐？</a>
                    </h3>
                    
                    <p class="question-text">
                        最近想入门摄影，打算购买一台微单相机，预算在5000元左右（可以接受套机）。主要用于日常记录、旅行拍摄，偶尔也想尝试人像摄影。希望操作不要太复杂，画质过得去，后期有升级镜头的空间。请问有哪些合适的机型推荐？
                    </p>
                    
                    <div class="answer-preview">
                        <div class="user-info mb-2">
                            <div class="user-avatar">
                                <img src="https://picsum.photos/40/40?random=212" alt="回答用户头像">
                            </div>
                            <div>
                                <a href="#" class="user-name">职业摄影师</a>
                                <div class="qa-meta">
                                    <span>4天前 回答</span>
                                </div>
                            </div>
                        </div>
                        
                        <p class="answer-text">
                            5000元左右预算有几款非常适合新手的微单选择：<br>
                            1. 索尼ZV-E10套机(16-50mm)：约4800元，视频性能出色，对焦强大，特别适合...
                        </p>
                        
                        <a href="#" class="read-more">查看完整回答</a>
                    </div>
                    
                    <div class="d-flex justify-content-between align-items-center">
                        <div class="qa-stats">
                            <div class="stat-item">
                                <i class="far fa-comment"></i>
                                <span>8 个回答</span>
                            </div>
                            <div class="stat-item">
                                <i class="far fa-eye"></i>
                                <span>5.7k 浏览</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-vote-yea"></i>
                                <span>103 人觉得有帮助</span>
                            </div>
                        </div>
                        
                        <div class="qa-actions">
                            <button class="action-btn">
                                <i class="far fa-comment"></i>
                                <span>回答</span>
                            </button>
                            <button class="action-btn">
                                <i class="far fa-bookmark"></i>
                                <span>收藏</span>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        
        <!-- 布局2: 简洁问答列表 -->
        <section>
            <h2 class="section-heading">
                <i class="fas fa-list"></i> 最新问答
            </h2>
            <p class="section-description">社区最新讨论的问题，欢迎参与解答</p>
            
            <div class="layout-compact-list">
                <!-- 问答1 -->
                <div class="qa-card">
                    <div class="stats-column">
                        <div>
                            <div class="stats-value">5</div>
                            <div class="stats-label">回答</div>
                        </div>
                        <div>
                            <div class="stats-value">24</div>
                            <div class="stats-label">有用</div>
                        </div>
                    </div>
                    
                    <div class="content-column">
                        <h3 class="question">
                            <a href="#">远程工作时如何保持高效和工作动力？</a>
                        </h3>
                        
                        <div class="qa-meta">
                            <a href="#" class="user-name">自由职业者</a>
                            <span>·</span>
                            <span>1小时前</span>
                            <span>·</span>
                            <span class="qa-tag">职场</span>
                            <span class="qa-tag">远程工作</span>
                        </div>
                    </div>
                </div>
                
                <!-- 问答2 -->
                <div class="qa-card">
                    <div class="stats-column">
                        <div>
                            <div class="stats-value">12</div>
                            <div class="stats-label">回答</div>
                        </div>
                        <div>
                            <div class="stats-value">87</div>
                            <div class="stats-label">有用</div>
                        </div>
                    </div>
                    
                    <div class="content-column">
                        <h3 class="question">
                            <a href="#">有哪些适合初学者的Python数据分析项目？</a>
                        </h3>
                        
                        <div class="qa-meta">
                            <a href="#" class="user-name">数据科学学生</a>
                            <span>·</span>
                            <span>3小时前</span>
                            <span>·</span>
                            <span class="qa-tag">Python</span>
                            <span class="qa-tag">数据分析</span>
                        </div>
                    </div>
                </div>
                
                <!-- 问答3 -->
                <div class="qa-card">
                    <div class="stats-column">
                        <div>
                            <div class="stats-value">3</div>
                            <div class="stats-label">回答</div>
                        </div>
                        <div>
                            <div class="stats-value">11</div>
                            <div class="stats-label">有用</div>
                        </div>
                    </div>
                    
                    <div class="content-column">
                        <h3 class="question">
                            <a href="#">小户型如何设计才能兼顾储物和美观？</a>
                        </h3>
                        
                        <div class="qa-meta">
                            <a href="#" class="user-name">新业主</a>
                            <span>·</span>
                            <span>5小时前</span>
                            <span>·</span>
                            <span class="qa-tag">装修</span>
                            <span class="qa-tag">小户型</span>
                        </div>
                    </div>
                </div>
                
                <!-- 问答4 -->
                <div class="qa-card">
                    <div class="stats-column">
                        <div>
                            <div class="stats-value">7</div>
                            <div class="stats-label">回答</div>
                        </div>
                        <div>
                            <div class="stats-value">36</div>
                            <div class="stats-label">有用</div>
                        </div>
                    </div>
                    
                    <div class="content-column">
                        <h3 class="question">
                            <a href="#">初学者如何系统地学习摄影构图技巧？</a>
                        </h3>
                        
                        <div class="qa-meta">
                            <a href="#" class="user-name">摄影新手</a>
                            <span>·</span>
                            <span>昨天</span>
                            <span>·</span>
                            <span class="qa-tag">摄影</span>
                            <span class="qa-tag">构图</span>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        
        <!-- 布局3: 带图片的问答卡片 -->
        <section>
            <h2 class="section-heading">
                <i class="fas fa-image"></i> 带图问答
            </h2>
            <p class="section-description">包含图片的问答，更直观地展示问题和解决方案</p>
            
            <div class="layout-with-images">
                <!-- 问答1 -->
                <div class="qa-card">
                    <div class="user-info">
                        <div class="user-avatar">
                            <img src="https://picsum.photos/40/40?random=203" alt="提问用户头像">
                        </div>
                        <div>
                            <a href="#" class="user-name">园艺爱好者</a>
                            <div class="qa-meta">
                                <span>3天前</span>
                                <span>·</span>
                                <span class="qa-tag">园艺</span>
                                <span class="qa-tag">植物养护</span>
                            </div>
                        </div>
                    </div>
                    
                    <h3 class="question">
                        <a href="#">我的绿萝叶子发黄，是什么原因导致的？该如何解决？</a>
                    </h3>
                    
                    <p class="question-text">
                        家里的绿萝最近叶子开始发黄，尤其是底部的老叶，有些叶子边缘还出现了褐色斑点。我大概每周浇一次水，放在客厅散射光处。请问这是什么原因导致的？该如何处理才能让它恢复健康？
                    </p>
                    
                    <div class="images-container">
                        <div class="qa-image">
                            <img src="https://picsum.photos/300/200?random=101" alt="绿萝叶子发黄的状态">
                        </div>
                        <div class="qa-image">
                            <img src="https://picsum.photos/300/200?random=102" alt="绿萝叶片特写，显示褐色斑点">
                        </div>
                    </div>
                    
                    <div class="d-flex justify-content-between align-items-center">
                        <div class="qa-stats">
                            <div class="stat-item">
                                <i class="far fa-comment"></i>
                                <span>6 个回答</span>
                            </div>
                            <div class="stat-item">
                                <i class="far fa-eye"></i>
                                <span>2.8k 浏览</span>
                            </div>
                        </div>
                        
                        <div class="qa-actions">
                            <button class="action-btn">
                                <i class="far fa-comment"></i>
                                <span>回答</span>
                            </button>
                            <button class="action-btn">
                                <i class="far fa-bookmark"></i>
                                <span>收藏</span>
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- 问答2 -->
                <div class="qa-card">
                    <div class="user-info">
                        <div class="user-avatar">
                            <img src="https://picsum.photos/40/40?random=204" alt="提问用户头像">
                        </div>
                        <div>
                            <a href="#" class="user-name">厨艺新手</a>
                            <div class="qa-meta">
                                <span>1周前</span>
                                <span>·</span>
                                <span class="qa-tag">烹饪</span>
                                <span class="qa-tag">烘焙</span>
                            </div>
                        </div>
                    </div>
                    
                    <h3 class="question">
                        <a href="#">为什么我做的戚风蛋糕总是塌陷，表面开裂？</a>
                    </h3>
                    
                    <p class="question-text">
                        尝试做了几次戚风蛋糕，每次烤出来都会出现不同程度的塌陷，而且表面容易开裂。我严格按照配方操作，烤箱温度也控制在150度左右。请问问题可能出在哪里？有什么办法可以避免这些问题？
                    </p>
                    
                    <div class="images-container">
                        <div class="qa-image">
                            <img src="https://picsum.photos/300/200?random=103" alt="塌陷的戚风蛋糕侧面">
                        </div>
                        <div class="qa-image">
                            <img src="https://picsum.photos/300/200?random=104" alt="表面开裂的蛋糕顶部">
                        </div>
                        <div class="qa-image">
                            <img src="https://picsum.photos/300/200?random=105" alt="蛋糕内部组织状态">
                        </div>
                    </div>
                    
                    <div class="d-flex justify-content-between align-items-center">
                        <div class="qa-stats">
                            <div class="stat-item">
                                <i class="far fa-comment"></i>
                                <span>9 个回答</span>
                            </div>
                            <div class="stat-item">
                                <i class="far fa-eye"></i>
                                <span>4.2k 浏览</span>
                            </div>
                        </div>
                        
                        <div class="qa-actions">
                            <button class="action-btn">
                                <i class="far fa-comment"></i>
                                <span>回答</span>
                            </button>
                            <button class="action-btn">
                                <i class="far fa-bookmark"></i>
                                <span>收藏</span>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        
        <!-- 布局4: 热门问答网格 -->
        <section>
            <h2 class="section-heading">
                <i class="fas fa-fire"></i> 热门问答
            </h2>
            <p class="section-description">社区中最受关注的问答内容，看看大家都在讨论什么</p>
            
            <div class="layout-popular-grid">
                <!-- 问答1 -->
                <div class="qa-card">
                    <h3 class="question">
                        <a href="#">30岁转行做程序员，来得及吗？需要做哪些准备？</a>
                    </h3>
                    
                    <p class="question-text">
                        我今年30岁，在传统行业工作了5年，感觉发展空间有限，想转行做程序员。但担心年龄太大，学习能力不如年轻人，而且没有相关经验。请问这个年龄转行来得及吗？需要做哪些准备？
                    </p>
                    
                    <div class="qa-footer">
                        <div class="qa-meta">
                            <span class="qa-tag">职业发展</span>
                            <span>· 23个回答</span>
                        </div>
                        <button class="action-btn voted">
                            <i class="fas fa-arrow-up"></i>
                            <span>156</span>
                        </button>
                    </div>
                </div>
                
                <!-- 问答2 -->
                <div class="qa-card">
                    <h3 class="question">
                        <a href="#">有哪些适合在家进行的有氧运动，不需要器械？</a>
                    </h3>
                    
                    <p class="question-text">
                        因为工作忙，很难坚持去健身房，但又想保持运动习惯。请问有哪些适合在家进行的有氧运动，不需要任何器械，而且能达到较好的锻炼效果？每次需要做多长时间？
                    </p>
                    
                    <div class="qa-footer">
                        <div class="qa-meta">
                            <span class="qa-tag">健身</span>
                            <span>· 18个回答</span>
                        </div>
                        <button class="action-btn voted">
                            <i class="fas fa-arrow-up"></i>
                            <span>215</span>
                        </button>
                    </div>
                </div>
                
                <!-- 问答3 -->
                <div class="qa-card">
                    <h3 class="question">
                        <a href="#">如何有效提高自己的阅读速度和理解能力？</a>
                    </h3>
                    
                    <p class="question-text">
                        我想通过阅读来提升自己，但阅读速度很慢，而且读完之后经常记不住内容。请问有什么方法可以有效提高阅读速度和理解能力？有没有推荐的训练方法或工具？
                    </p>
                    
                    <div class="qa-footer">
                        <div class="qa-meta">
                            <span class="qa-tag">学习方法</span>
                            <span>· 31个回答</span>
                        </div>
                        <button class="action-btn voted">
                            <i class="fas fa-arrow-up"></i>
                            <span>189</span>
                        </button>
                    </div>
                </div>
                
                <!-- 问答4 -->
                <div class="qa-card">
                    <h3 class="question">
                        <a href="#">新手如何开始理财？有哪些适合初学者的理财方式？</a>
                    </h3>
                    
                    <p class="question-text">
                        以前从来没有理财习惯，工资都是直接存在银行卡里。现在想开始学习理财，但不知道从何入手。请问新手应该如何开始理财？有哪些风险较低、适合初学者的理财方式？
                    </p>
                    
                    <div class="qa-footer">
                        <div class="qa-meta">
                            <span class="qa-tag">理财</span>
                            <span>· 27个回答</span>
                        </div>
                        <button class="action-btn voted">
                            <i class="fas fa-arrow-up"></i>
                            <span>324</span>
                        </button>
                    </div>
                </div>
            </div>
        </section>
        
        <!-- 布局5: 已解决问答样式 -->
        <section>
            <h2 class="section-heading">
                <i class="fas fa-check-circle"></i> 已解决问答
            </h2>
            <p class="section-description">已经得到有效解答的问题，或许能帮到有类似困扰的你</p>
            
            <div class="layout-solved-questions">
                <!-- 问答1 -->
                <div class="qa-card">
                    <div class="card-header">
                        <div class="user-info m-0">
                            <div class="user-avatar">
                                <img src="https://picsum.photos/40/40?random=205" alt="提问用户头像">
                            </div>
                            <div>
                                <a href="#" class="user-name">电脑用户</a>
                                <div class="qa-meta">
                                    <span>1周前 提问</span>
                                    <span>·</span>
                                    <span class="qa-tag">电脑故障</span>
                                </div>
                            </div>
                        </div>
                        <span class="solved-badge">已解决</span>
                    </div>
                    
                    <div class="card-body">
                        <h3 class="question">
                            <a href="#">Windows 11频繁蓝屏重启，错误代码PAGE_FAULT_IN_NONPAGED_AREA，该如何解决？</a>
                        </h3>
                        
                        <p class="question-text">
                            最近升级到Windows 11后，电脑经常出现蓝屏重启的情况，错误代码是PAGE_FAULT_IN_NONPAGED_AREA。尝试过系统还原，但问题依然存在。请问这是什么原因导致的？该如何解决？
                        </p>
                        
                        <div class="best-answer">
                            <div class="answer-header">
                                <i class="fas fa-check-circle"></i>
                                <span>最佳回答</span>
                            </div>
                            
                            <div class="user-info mb-2">
                                <div class="user-avatar">
                                    <img src="https://picsum.photos/40/40?random=215" alt="回答用户头像">
                                </div>
                                <div>
                                    <a href="#" class="user-name">系统工程师</a>
                                    <div class="qa-meta">
                                        <span>6天前 回答</span>
                                        <span>·</span>
                                        <span>128人觉得有帮助</span>
                                    </div>
                                </div>
                            </div>
                            
                            <p class="answer-text">
                                这个错误通常与驱动程序冲突或内存问题有关，建议按以下步骤解决：<br>
                                1. 更新所有设备驱动程序，特别是显卡和芯片组驱动...
                            </p>
                            
                            <a href="#" class="read-more">查看完整回答</a>
                        </div>
                    </div>
                </div>
                
                <!-- 问答2 -->
                <div class="qa-card">
                    <div class="card-header">
                        <div class="user-info m-0">
                            <div class="user-avatar">
                                <img src="https://picsum.photos/40/40?random=206" alt="提问用户头像">
                            </div>
                            <div>
                                <a href="#" class="user-name">手机用户</a>
                                <div class="qa-meta">
                                    <span>2周前 提问</span>
                                    <span>·</span>
                                    <span class="qa-tag">手机问题</span>
                                </div>
                            </div>
                        </div>
                        <span class="solved-badge">已解决</span>
                    </div>
                    
                    <div class="card-body">
                        <h3 class="question">
                            <a href="#">iPhone电池健康度下降过快，不到一年只剩85%，正常吗？</a>
                        </h3>
                        
                        <p class="question-text">
                            我的iPhone 13用了10个月，电池健康度已经降到85%了，感觉掉电很快，尤其是在使用5G网络的时候。这属于正常现象吗？有没有什么方法可以减缓电池健康度的下降？
                        </p>
                        
                        <div class="best-answer">
                            <div class="answer-header">
                                <i class="fas fa-check-circle"></i>
                                <span>最佳回答</span>
                            </div>
                            
                            <div class="user-info mb-2">
                                <div class="user-avatar">
                                    <img src="https://picsum.photos/40/40?random=216" alt="回答用户头像">
                                </div>
                                <div>
                                    <a href="#" class="user-name">数码专家</a>
                                    <div class="qa-meta">
                                        <span>1周前 回答</span>
                                        <span>·</span>
                                        <span>97人觉得有帮助</span>
                                    </div>
                                </div>
                            </div>
                            
                            <p class="answer-text">
                                iPhone电池健康度在10个月内降到85%略低于平均水平（正常情况下每年下降约10-15%），但仍在合理范围内...
                            </p>
                            
                            <a href="#" class="read-more">查看完整回答</a>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </div>

    <!-- Bootstrap 5 JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 投票功能
            const voteButtons = document.querySelectorAll('.action-btn:not(.far.fa-comment):not(.far.fa-bookmark)');
            voteButtons.forEach(button => {
                button.addEventListener('click', function() {
                    this.classList.toggle('voted');
                    if (this.classList.contains('voted')) {
                        this.innerHTML = this.innerHTML.replace('far fa-arrow-up', 'fas fa-arrow-up');
                        // 更新票数（实际应用中会发送到服务器）
                        const countSpan = this.querySelector('span');
                        if (countSpan) {
                            countSpan.textContent = parseInt(countSpan.textContent) + 1;
                        }
                    } else {
                        this.innerHTML = this.innerHTML.replace('fas fa-arrow-up', 'far fa-arrow-up');
                        // 减少票数
                        const countSpan = this.querySelector('span');
                        if (countSpan) {
                            countSpan.textContent = parseInt(countSpan.textContent) - 1;
                        }
                    }
                });
            });
            
            // 回答和收藏功能
            const actionButtons = document.querySelectorAll('.action-btn.far.fa-comment, .action-btn.far.fa-bookmark');
            actionButtons.forEach(button => {
                button.addEventListener('click', function() {
                    const actionType = this.querySelector('.far.fa-comment') ? '回答' : '收藏';
                    if (actionType === '收藏') {
                        this.classList.toggle('voted');
                        if (this.classList.contains('voted')) {
                            this.innerHTML = '<i class="fas fa-bookmark"></i><span>已收藏</span>';
                        } else {
                            this.innerHTML = '<i class="far fa-bookmark"></i><span>收藏</span>';
                        }
                    } else {
                        // 回答功能
                        alert('打开回答编辑器');
                    }
                });
            });
        });
    </script>
</body>
</html>

